package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeamSysinfoMapper;
import com.ruoyi.system.domain.TeamSysinfo;
import com.ruoyi.system.service.ITeamSysinfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 系统信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-14
 */
@Service
public class TeamSysinfoServiceImpl implements ITeamSysinfoService 
{
    @Autowired
    private TeamSysinfoMapper teamSysinfoMapper;

    /**
     * 查询系统信息
     * 
     * @param sysId 系统信息主键
     * @return 系统信息
     */
    @Override
    public TeamSysinfo selectTeamSysinfoBySysId(String sysId)
    {
        return teamSysinfoMapper.selectTeamSysinfoBySysId(sysId);
    }

    /**
     * 查询系统信息列表
     * 
     * @param teamSysinfo 系统信息
     * @return 系统信息
     */
    @Override
    public List<TeamSysinfo> selectTeamSysinfoList(TeamSysinfo teamSysinfo)
    {
        return teamSysinfoMapper.selectTeamSysinfoList(teamSysinfo);
    }

    /**
     * 新增系统信息
     * 
     * @param teamSysinfo 系统信息
     * @return 结果
     */
    @Override
    public int insertTeamSysinfo(TeamSysinfo teamSysinfo)
    {
        return teamSysinfoMapper.insertTeamSysinfo(teamSysinfo);
    }

    /**
     * 修改系统信息
     * 
     * @param teamSysinfo 系统信息
     * @return 结果
     */
    @Override
    public int updateTeamSysinfo(TeamSysinfo teamSysinfo)
    {
        return teamSysinfoMapper.updateTeamSysinfo(teamSysinfo);
    }

    /**
     * 批量删除系统信息
     * 
     * @param sysIds 需要删除的系统信息主键
     * @return 结果
     */
    @Override
    public int deleteTeamSysinfoBySysIds(String sysIds)
    {
        return teamSysinfoMapper.deleteTeamSysinfoBySysIds(Convert.toStrArray(sysIds));
    }

    /**
     * 删除系统信息信息
     * 
     * @param sysId 系统信息主键
     * @return 结果
     */
    @Override
    public int deleteTeamSysinfoBySysId(String sysId)
    {
        return teamSysinfoMapper.deleteTeamSysinfoBySysId(sysId);
    }
}
